
def open_file():
    print("打开文件句柄，通过fixtrue")
    fo=open("test.txt","w")

    yield fo
    print("关闭文件句柄，通过fixture")
    fo.close()

def write_file():
    fo=open("test.txt","r")
    print("读取文件句柄")


    yield fo
